<?php
class SiteController extends Controller{


    function IndexAction(){
        $post = new Post;
        $postlist = $post -> getAllPost();
        $this->render('index',array('postlist'=>$postlist));
    }


}